package com.quan.hr.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import com.quan.commons.vo.BaseEntity;

/**
 * 人事管理-岗位系数
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2023-03-07 18:11:41
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("hr_post_coefficient")
public class HrPostCoefficient extends BaseEntity implements Serializable{
private static final long serialVersionUID=1L;

    /**
     * ID
     */
    @TableId
    private Long id;

    /**
     * 岗位ID
     */
    private Long postId;

    /**
     * 年份
     */
    @NotNull(message = "年份不能为空")
    private String year;

    /**
     * 岗位系数
     */
    private BigDecimal coeff;

    /**
     * 更新人
     */
    private String uname;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime ctime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime utime;


}
